projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf95b53
)
Fix memory leak
author
Alan Third
<alan@idiocy.org>
Sat, 20 Feb 2021 20:40:56 +0000
(20:40 +0000)
committer
Alan Third
<alan@idiocy.org>
Sat, 20 Feb 2021 20:42:11 +0000
(20:42 +0000)
* src/nsterm.m ([EmacsSurface dealloc]): Release will remove all
objects and free the memory.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index 6551694abeeb4625c9ebe2d43ec6ad3e87a31423..88317f883936ebe939bbd58651fd3798b820d5c4 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-9767,7
+9767,7
@@
nswindow_orderedIndex_sort (id w1, id w2, void *c)
for (id object in cache)
CFRelease ((IOSurfaceRef)object);
- [cache re
moveAllObjects
];
+ [cache re
lease
];
[super dealloc];
}